package com.jic.member.api.rest;

import com.jic.common.base.vo.RestResult;
import com.jic.member.request.MemberGradeRequest;
import com.jic.member.request.power.MememberLegalRuleRequest;
import com.jic.member.request.power.MememberTypeGradeRequest;
import com.jic.member.response.MemberGradeResponse;
import com.jic.member.response.MememberGradeForMarket;
import com.jic.member.response.power.MememberLegalRuleResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * 会员等级
 */

@FeignClient(name = "jic-member",path = "/api/grade")
public interface MememberGradeApi {

    /**
     * 查询会员等级权益记录
     * @param mememberLegalRuleRequest 请求参数
     * @return 会员权益列表
     */
    @PostMapping("/queryMemberRule")
    List<MememberLegalRuleResponse> queryMemberRule(MememberLegalRuleRequest mememberLegalRuleRequest);

    /**
     * 根据条件查询会员等级配置表
     * @param request 入参
     * @Author tzc
     * @return 包含MemberGradeResponse的列表；
     * @Date 2020-7-1 01:13:25
     */
    @PostMapping("/listMemberGradeForMarket")
    RestResult<List<MememberGradeForMarket>> listMemberGradeForMarket(MemberGradeRequest request);
}
